package org.jeecg.modules.nikeProject.job;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.nikeProject.service.ISportsProjectStatDataService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

@Slf4j
public class SendStatDataJob implements Job {
    @Autowired
    private ISportsProjectStatDataService sportsProjectStatDataService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("-------------开始执行每日一次统计提交案例数据拉取-------------");
        sportsProjectStatDataService.getDayData(null);
        log.info("-------------结束执行每日一次统计提交案例数据拉取-------------");
    }
}
